<script type="text/javascript">
	// Necessary application scripting
	sesInfo = function()
	{
		var sLabel = '';
		$('#cfSessionInfo').toggle();
		if ($('#cfSessionInfo').is(':visible')) sLabel = 'hide session information';
		else sLabel = 'show session information';
		$('#showSessionLabel').text(sLabel);
		return false;
	}

	function doAjax()
	{
		var sService = '/com/revenea/service/test.cfc';
		// var sService = '/revenea/account/service/User.cfc';
		$.get(sService, { method: "getSessionIds", returnformat: "JSON" },
 					function(data)
 					{
   					console.log("Data Loaded: " + data);
 					}
 				);
 				return false;
	}
</script>
<style type="text/css">
	/* Necessary application styles */
	div#cfSessionInfo { display:none; margin:0px 0px 8px 0px; }
</style>
<cfoutput>
	<p>
		<a href="##" id="showSessionLabel" onclick="sesInfo();">show session information</a> |
		<a href="##" onclick="doAjax();">do ajax</a> |
		<a href="#variables.myself##XFA.reload#">reload</a>
	</p>
	<div id="cfSessionInfo">
		<strong>CFID:</strong> #session.cfid#<br />
		<strong>CFTOKEN:</strong> #session.cftoken#<br />
		<strong>Authenticated User:</strong> #GetAuthUser()#<br />
		<strong>Roles:</strong> #GetUserRoles()#<br />
	</div>
</cfoutput>